.class public Lcom/instagram/android/login/d/a;
.super Lcom/instagram/android/d/j/g;
.source "CheckUsernameRequest.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/g",
        "<",
        "Lcom/instagram/android/model/b;",
        ">;"
    }
.end annotation


# instance fields
.field private a:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/support/v4/app/aj;",
            "I",
            "Lcom/instagram/android/d/j/f",
            "<",
            "Lcom/instagram/android/model/b;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 25
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/instagram/android/d/j/g;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V

    .line 26
    return-void
.end method


# virtual methods
.method public a()Lcom/instagram/android/d/b/a;
    .locals 1

    .prologue
    .line 48
    sget-object v0, Lcom/instagram/android/d/b/a;->a:Lcom/instagram/android/d/b/a;

    return-object v0
.end method

.method protected a(Lcom/instagram/android/d/b/c;)V
    .locals 2
    .parameter

    .prologue
    .line 58
    const-string v0, "username"

    iget-object v1, p0, Lcom/instagram/android/login/d/a;->a:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 59
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/instagram/android/login/d/a;->a:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 43
    :goto_0
    return-void

    .line 41
    :cond_0
    iput-object p1, p0, Lcom/instagram/android/login/d/a;->a:Ljava/lang/String;

    .line 42
    invoke-virtual {p0}, Lcom/instagram/android/login/d/a;->g()V

    goto :goto_0
.end method

.method public a(Ljava/lang/String;Lcom/fasterxml/jackson/a/l;Lcom/instagram/android/d/j/r;)Z
    .locals 3
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/fasterxml/jackson/a/l;",
            "Lcom/instagram/android/d/j/r",
            "<",
            "Lcom/instagram/android/model/b;",
            ">;)Z"
        }
    .end annotation

    .prologue
    const/4 v1, 0x1

    .line 64
    const-string v0, "username"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 66
    invoke-virtual {p3}, Lcom/instagram/android/d/j/r;->h()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b;

    .line 67
    if-nez v0, :cond_0

    .line 68
    new-instance v0, Lcom/instagram/android/model/b;

    invoke-direct {v0}, Lcom/instagram/android/model/b;-><init>()V

    .line 71
    :cond_0
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 72
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v2

    .line 74
    invoke-virtual {v0, v2}, Lcom/instagram/android/model/b;->a(Ljava/lang/String;)V

    .line 76
    invoke-virtual {p3, v0}, Lcom/instagram/android/d/j/r;->a(Ljava/lang/Object;)V

    move v0, v1

    .line 94
    :goto_0
    return v0

    .line 78
    :cond_1
    const-string v0, "available"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 80
    invoke-virtual {p3}, Lcom/instagram/android/d/j/r;->h()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b;

    .line 81
    if-nez v0, :cond_2

    .line 82
    new-instance v0, Lcom/instagram/android/model/b;

    invoke-direct {v0}, Lcom/instagram/android/model/b;-><init>()V

    .line 85
    :cond_2
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 86
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getValueAsBoolean()Z

    move-result v2

    .line 88
    invoke-virtual {v0, v2}, Lcom/instagram/android/model/b;->a(Z)V

    .line 90
    invoke-virtual {p3, v0}, Lcom/instagram/android/d/j/r;->a(Ljava/lang/Object;)V

    move v0, v1

    .line 91
    goto :goto_0

    .line 94
    :cond_3
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public d()Z
    .locals 1

    .prologue
    .line 53
    const/4 v0, 0x1

    return v0
.end method

.method protected f()Ljava/lang/String;
    .locals 1

    .prologue
    .line 31
    const-string v0, "users/check_username/"

    return-object v0
.end method

.method public i()Ljava/lang/String;
    .locals 1

    .prologue
    .line 98
    iget-object v0, p0, Lcom/instagram/android/login/d/a;->a:Ljava/lang/String;

    return-object v0
.end method
